package com.jerry.android.Common;

import android.app.Application;
import android.content.Context;

import com.blankj.utilcode.util.Utils;
//import android.support.multidex.MultiDex;

public class MyApplication extends Application {

    private static MyApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
//        MultiDex.install(base);

        //工具类初使化
        Utils.init(this);
    }

    public MyApplication() {
        instance = this;
    }

    public static Context getContext() {
        return instance;
    }

    public static MyApplication getApplication() {
        return instance;
    }
}
